import React from 'react'

export default function Son(props) {

  const clickGoods = () => {
    props.getPrice(100)
  }

  return (
    <div>
      Son: {props.num}
      <h1 onClick={clickGoods}>子传父</h1>
    </div>
  )
}
